﻿using AiQiuQuan.Sport.Model.Enums;
using System.ComponentModel.DataAnnotations;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 小组编排抽签
    /// </summary>
    public class GameGroupDrawLotsRequestDto
    {
        /// <summary>
        /// 比赛ID
        /// </summary>
        [Required]
        public Guid GameId { get; set; }

        /// <summary>
        /// 对阵类型，1单打、2双打、3男单、4女单、5男双、6女双、7混双
        /// </summary>
        [Required(ErrorMessage = "对阵类型，1单打、2双打、3男单、4女单、5男双、6女双、7混双必填")]
        [EnumDataType(typeof(GameVersusEnum))]
        public GameVersusEnum VersusType { get; set; }

        /// <summary>
        /// 编排队伍列表
        /// </summary>
        [Required]
        [MinLength(0)]
        public List<GameGroupDrawLotsDetalDto> TeamList { get; set; }
    }
}
